<?php
namespace Mob \ Model;

use Think \ Model;
use Think \ Hook;
/**浏览模式模型
 * Class InfoModel
 */

require_once ('./Application/Mob/Common/function.php');

class ClickModel extends Model {
  protected $tableName = 'click_record';

  public function addRecord($Type,$businessId,$clickUrl,$ext)
  {
	$data['Serialno']=	getSerialno(); //拼写url数组
	$data['clickTime']=time();
	$data['clickUid']=	get_uid();  //拼写where条件
	$data['clickUrl']=$clickUrl;
	$data['srcSite']=get_client_ip();     //取访问地址IP
	$data['serviceSite']=get_LocalIp();   //服务器IP
	$data['type']=$Type;
	$data['businessId']=$businessId;
	$data['ext']=$ext;
	if($this->add($data))
	{
	return 	$data['Serialno'];
	}
   }

}